﻿namespace Arms.Presentation.Web.Areas.People.Models
{
    using Arms.Presentation.Web.Models;
    using System;
    using System.ComponentModel.DataAnnotations;

    public class LoginModel : BaseModel
    {
        public string UserName { get; set; }
        public string Password { get; set; }
        public string Pin { get; set; }
        public bool RememberMe { get; set; }

        public bool IsPin
        {
            get
            {
                return string.IsNullOrEmpty(this.UserName) &&
                       string.IsNullOrEmpty(this.Password) &&
                       !string.IsNullOrEmpty(this.Pin);
            }
        }
    }
}
